package server;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import modelo.Modelo;

public class Main {
	

	public static void main(String[] args) throws RemoteException {
		 new Main();	
		
	}
		public Main(){
			
			try {
				LocateRegistry.createRegistry(1099);
				Modelo gestionAlumnos = Modelo.getIns();
				Naming.rebind("//127.0.0.1/InterfazAlumnos", gestionAlumnos);
				System.out.println("Fijado en //127.0.0.1/GestionAlumnos");
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		}	 
	
}
